<template>
<div id="charts13" ref="charts13" style="height: 400px;"></div>
</template>
<script>
  export default {
    mounted() {
      this.drawchart()
    },
    methods: {
      drawchart() {
        var option = {
          backgroundColor: 'rgba(255,255,255,0.5)',
          series: {
            type: 'sankey',
            layout: 'none',
            data: [{
              name: '肺癌筛查'
            }, {
              name: '肺癌药物治疗'
            },
              {
              name: '疑似体征'
            },
              {
                name: '机会性筛查'
              }, {
              name: '危险因素控制'
            }, {
              name: '分子靶向药物'
            }, {
              name: '化疗药物'
            }
              , {
                name: '异环磷酰胺'
              }, {
                name: '丝裂霉素'
              }, {
                name: '吉非替尼'
              }, {
                name: '阿法替尼'
              },{
              name: '低蛋白血症'
            }, {
              name: '早期无明显症状'
            }, {
              name: '高危人群筛查'
            }, {
              name: '发热'
            }
              ],
            links: [{
              source: '肺癌筛查',
              target: '危险因素控制',
              value: 8
            }, {
              source: '肺癌筛查',
              target: '疑似体征',
              value: 1
            }, {
              source: '危险因素控制',
              target: '机会性筛查',
              value:5
            }, {
              source: '危险因素控制',
              target: '高危人群筛查',
              value: 3
            }, {
              source: '疑似体征',
              target: '发热',
              value: 1
            }, {
              source: '肺癌药物治疗',
              target: '分子靶向药物',
              value: 4
            }, {
              source: '肺癌药物治疗',
              target: '化疗药物',
              value: 4
            }, {
              source: '分子靶向药物',
              target: '吉非替尼',
              value: 2
            }, {
              source: '分子靶向药物',
              target: '阿法替尼',
              value: 2
            }, {
              source: '化疗药物',
              target: '异环磷酰胺',
              value: 2
            }, {
              source: '化疗药物',
              target: '丝裂霉素',
              value: 2
            }]
          }
        };
        var mycharts = this.$echarts.init(this.$refs.charts13)
        mycharts.setOption(option)
      }
    }
  }
</script>
<style></style>

